{%extends 'base_detail_list.html'%}



{%block body%}
<div class="navbar_con">
    <div class="navbar clearfix">
        <div class="subnav_con fl">
            <h1>全部商品分类</h1>	
            <span></span>			
            <ul class="subnav">
                <li><a href="list/1/1" class="fruit">新鲜水果</a></li>
                <li><a href="list/2/1" class="seafood">海鲜水产</a></li>
                <li><a href="list/3/1" class="meet">猪牛羊肉</a></li>
                <li><a href="list/4/1" class="egg">禽类蛋品</a></li>
                <li><a href="list/5/1" class="vegetables">新鲜蔬菜</a></li>
                <li><a href="list/6/1" class="ice">速冻食品</a></li>
            </ul>
        </div>
        <ul class="navlist fl">
            <li><a href="/index">首页</a></li>
            <li class="interval">|</li>
            <li><a href="">手机生鲜</a></li>
            <li class="interval">|</li>
            <li><a href="">抽奖</a></li>
        </ul>
    </div>
</div>
	<div class="breadcrumb">
		<a href="#">全部分类</a>
		<span>></span>
		<a href="#">{{query}}</a>
	</div>
{%block main_content%}
	<div class="main_wrap clearfix">


		<div class="r_wrap fr clearfix">


			<ul class="goods_type_list clearfix">
				{%for good in page%}
				<li>
					<a href="/detail/{{good.object.id}}"><img src="{{good.object.image.url}}"></a>
					<h4><a href="/detail/{{good.object.id}}">{{good.object.name}}</a></h4>
					<div class="operate">
						<span class="prize">￥{{good.object.price}}</span>
						<span class="unit">{{good.object.price}}/{{good.object.unite}}</span>
						<a href="#" class="add_goods" title="加入购物车"></a>
					</div>
				</li>
				{%endfor%}
			</ul>

			<div class="pagenation">
				{% if page.has_previous %}
				<a href="/search?q={{query}}&page={{page.previous_page_number}}">上一页</a>
				{%else%}
				<a>上一页</a>
				{%endif%}
				{%for i in paginator.page_range%}
				{%if i == page.number%}
				<a  class="active">{{i}}</a>
				{%else%}
				<a href="/search?q={{query}}&page={{i}}">{{i}}</a>
				{%endif%}
				{%endfor%}
				{% if page.has_next %}
				<a href="/search?q={{query}}&page={{page.next_page_number}}">下一页></a>
				{%else%}
				<a >下一页</a>
				{%endif%}
			</div>
		</div>
	</div>
{%endblock main_content%}


{%endblock body%}
